'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
  const { router, controller } = app;
  router.all('/', controller.config.welcome);
  router.all('/post/select', controller.post.select);
  router.all('/post/find', controller.post.find);
  router.all('/post/unlock', controller.post.unlock);
  router.all('/post/new', controller.post.new);

  router.all('/user/sendsms', controller.user.sendsms);
  router.all('/user/checksms', controller.user.checksms);
  router.all('/user/info', controller.user.info);

  router.all('/config', controller.config.index);
  router.all('/config/sts', controller.config.sts);
};
